package com.wyl.auth.controller;

import com.wyl.auth.req.FullCityReq;
import com.wyl.auth.service.FullCityService;
import com.wyl.auth.vo.FullCityVo;
import com.wyl.common.CommonPage;
import com.wyl.common.ResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
* @Description 省市区-字典
* @Author WuYiLong
* @Date 2024-11-24
*/
@Api(tags = "省市区-字典api")
@RestController
@RequestMapping("/fullCity")
public class FullCityController {
    @Autowired
    private FullCityService fullCityService;

    @ApiOperation(value = "分页")
    @PostMapping(value = "/pageFullCity")
    public ResponseData<CommonPage<FullCityVo>> pageFullCity(@RequestBody FullCityReq fullCityReq) {
        return ResponseData.create().getSuccessInstance(fullCityService.pageFullCity(fullCityReq));
    }

}
